/*
 * @Author: SevDaisy十七散人 
 * @Date: 2020-07-04 08:55:02 
 */
package zyy.model;

// 经考虑，特设 商家 <==> 商品目录 为一对多关系
public class BeanProduct_Dir {
  public static final String[] tableTitles = { "序号", "商品分类", "商品计数" };
  private int productDirID;

  private int MID;

  private int pdOrder;// 序号
  private String pdName;// 商品分类
  private int pdCnt;// 商品计数

  public String getCell(int col) {
    switch (col) {
      case 0:
        return (this.pdOrder + "");
      case 1:
        return this.pdName;
      case 2:
        return (this.pdCnt + "");
      default:
        return "";
    }
  }

  public int getProductDirID() {
    return productDirID;
  }

  public void setProductDirID(int productDirID) {
    this.productDirID = productDirID;
  }

  public int getMID() {
    return MID;
  }

  public void setMID(int mID) {
    MID = mID;
  }

  public int getPdOrder() {
    return pdOrder;
  }

  public void setPdOrder(int pdOrder) {
    this.pdOrder = pdOrder;
  }

  public String getPdName() {
    return pdName;
  }

  public void setPdName(String pdName) {
    this.pdName = pdName;
  }

  public int getPdCnt() {
    return pdCnt;
  }

  public void setPdCnt(int pdCnt) {
    this.pdCnt = pdCnt;
  }

  @Override
  public String toString() {
    return "BeanProduct_Dir [MID=" + MID + ", pdCnt=" + pdCnt + ", pdName=" + pdName + ", pdOrder=" + pdOrder
        + ", productDirID=" + productDirID + "]";
  }
}